Git Product home page Git Product logo

Comments (7)

dail8859 avatar dail8859 commented on May 27, 2024

I don't have a Mac to develop/test on so hopefully somebody can submit a PR. My guess is something with the layouts just need tweaked.

from notepadnext.

ErickWei avatar ErickWei commented on May 27, 2024

Debug via QT on macos,but get an error,Do you have any suggestions on how to solve this issue?

image

from notepadnext.

dail8859 avatar dail8859 commented on May 27, 2024

I'm assuming you also checked out the submodules?

git clone --recurse-submodules https://github.com/dail8859/NotepadNext.git

I know it is possible to build with mac but beyond that I'm not sure.

from notepadnext.

ErickWei avatar ErickWei commented on May 27, 2024

Just update 4 property of formLayout.

  • layoutLableAlignment-Horizontal:AlignLeft
  • layoutFormAlignment-Horizontal:AlignJustify
  • layoutSizeConstraint:SetNoConstraint
  • layoutFieldGrowthPolicy:First change to ExpandingFieldGrow then change back to AllNonFixedFieldsGrow, and AllNonFixedFieldsGrow is the final value.
    The layoutFieldGrowthPolicy must to be modified, or it won't be effective.I guess it is because, without modification, the program will set different default values for different platforms, which causes UI arrangement problems under the Mac platform.

I have tested both on Windows and Mac, and there is no problem.
image

Modified appearance:
image

But there is one thing to note, when I clone the repository to mac and windows, and open the project with qt, the values of the two property below are different:

MAC:

  • layoutLableAlignment-Horizontal:AlignRight
  • layoutFormAlignment-Horizontal:AlignHCenter

WINDOWS:

  • layoutLableAlignment-Horizontal:AlignLeft
  • layoutFormAlignment-Horizontal:AlignLeft

So, if you are modifying in the windows, you must change layoutLableAlignment-Horizontal to other value first, then change it back to AlignLeft

from notepadnext.

dail8859 avatar dail8859 commented on May 27, 2024

Can you create a PR for whatever works on Mac and I can review it on Windows and make sure it still looks ok?

from notepadnext.

ErickWei avatar ErickWei commented on May 27, 2024

Can you create a PR for whatever works on Mac and I can review it on Windows and make sure it still looks ok?

Okay,wait for me

from notepadnext.

dail8859 avatar dail8859 commented on May 27, 2024

Closed by #538

from notepadnext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.