Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS, iPad and Qt4iOS FAQ ?
Forum Updated to NodeBB v4.3 + New Features

IOS, iPad and Qt4iOS FAQ ?

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JDGascuel
    wrote on last edited by
    #1

    Hello,

    Is there a FAQ or a Wiki somewhere about Qt4iOS ?

    I'am starting porting my App to Qt4iOS, and have a series of questions that everyone should have tackle already:

    How to support automatic rotation ?

    Ian says this is automatic.While in my case, the QMainWindow won't rotate, what should I do ?

    I tried QGraphicsWidgetProxy, it is indeed capable of rotating widgets (but fixing origin is not so obvious...)

    How to detect rotation ?

    QOrientationSensor ? Any code example (including link procedure) ?

    How to get an iPad-look ?

    I tried QMacStyle, but it is not available outside Mac...

    What is the best way(s) to adapt the UI to iPhone/iPhone retina/iPad/iPad retina screen ?

    A stylesheet in screen dependent units is part of the answer. Eg. "* {font: 6pt }"

    Does not work for anything which is not a font (eg. button size), where I should use screen units, and change it according to the display.

    How to adapt to Portrait/Landscape ? Is a template a good solution ?

    @ template <class ui> class MyWindow : public QDialog, public ui { ... } ;
    ...
    if( orientation == topUp || orientation == bottomUp )
    return new MyWindow<ui_Portrait>;
    else
    return new MyWindow<ui_Lanscape>;@

    Any chance to have the full build from QtCreator ?

    The Xcode final link is anoying, because I am not able to put breakpoints...

    For the MacOS side, I use macdeployqt, codesign and productsign in a simple script to package it.

    --
    JeanDo http://ostc-planner.net

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved