(Solved) Layouts - looks great in windows and linux, horrible in MAC, and other issues
-
Working on migrating an application to Mac as I just got a mac book pro (love it), and ran into a few issues...
1 - Library created in Qt is "not loaded", as another post suggested I added "DYLD_LIBRARY_PATH" to the project settings and it loads it....is there a better / easier way? I move this code between windows, linux and mac daily, it is a bit of a chore to add it back into the project each time I get on the mac.
2 -The layouts looks good on windows and linux, but on mac they are horrible....the text boxes are centered and only about 20 pixels wide....the layout is set to expend with the window, does not occur on mac.
Thoughts?
-
Hi,
What version of Qt are you using ? What version of OS X are you running ?
- DYLD_LIBRARY_PATH is fine to use. You can set it in Qt Creator and be done with it.
You can also set the rpath when building your library on OS X
- Without any code, it's only crystal ball debugging so no real way to help you.
-
Thanks for the response,
Qt = 5.3
Qt Creator = 3.2.0 (Open Source)
OSX =10.9.4I did not write any GUI code, simply created a new window and drag / dropped components, selected them and choose a layout, but, here is the code from one of the simple windows.
It seems like the "grid layout" is whats most impacted, will play around with it but any help is appreciated :)
@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>About this program</string>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Author:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Bryan Cairns</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Email:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_5">
<property name="text">
<string><html><head/><body><p>support@pluginbot.net</p></body></html></string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>URL:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label_7">
<property name="text">
<string><html><head/><body><p>http://www.pluginbot.net</p></body></html></string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>Version:</string>
</property>
</widget>
</item>@