Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Cleaning up my Qt installation

    13
    0 Votes
    13 Posts
    5k Views
    mzimmersM
    Done, and it seems to work OK. In my Tool Chain, I have something called Maemo 6 GCC. It's the last of my auto-detected chains. What is it, do I need it, and if so, should it be ahead of the others? Thanks. I also have something called MeeGo 1.2 Harmattan in my Qt Versions; do I need this?
  • [Self-Solved]QTableView selected row color

    2
    0 Votes
    2 Posts
    4k Views
    P
    just reimplements the drawdisplay() in the delegate and make drawfocus() is empty function.
  • QPainter drawText on a QImage: Wrong text color???!!!

    2
    0 Votes
    2 Posts
    11k Views
    R
    Did you try to draw text on usual image loaded to tmpImage? Why you use Format_ARGB32_Premultiplied? Video didn't has alpha layer.
  • Apple System Services and Qt.

    9
    0 Votes
    9 Posts
    5k Views
    E
    [quote author="Volker" date="1319803919"]If you want to include your App bundle into another one, just copy it there. See this "recent thread":/forums/viewthread/11058 for a similiar problem.[/quote] Yes, I just have to do so.
  • Can't read a whole xml file

    12
    0 Votes
    12 Posts
    6k Views
    A
    [quote author="annatz" date="1319793761"]my problem andre was to create the root element. thank you both. i will do it in that way ka510[/quote] Sounds obvious to me that if you ask for an element to be created multiple times, then it will be. So, the solution is simply to create the opening tag for the root element once, create all the content, and then create the closing tag for the root element. And 'once' here then means: outside your loop writing away your data.
  • [solved]Can proxy cause "connection timed out"?

    5
    0 Votes
    5 Posts
    5k Views
    M
    Thanks a lot peppe.
  • 0 Votes
    5 Posts
    6k Views
    L
    Haven't seen this function Andre. All fine now. Thanks )
  • QGraphicsScene - not updated after QGraphicsItem moved

    4
    0 Votes
    4 Posts
    5k Views
    R
    Try to "update the geometry":http://doc.qt.nokia.com/latest/qgraphicsitem.html#prepareGeometryChange or you can set to scene this flag "QGraphicsScene::NoIndex":http://doc.qt.nokia.com/latest/qgraphicsscene.html#ItemIndexMethod-enum maybe this will be better for your dynamic scene.
  • QTabWidget: different close image for selected Tab

    5
    0 Votes
    5 Posts
    5k Views
    W
    [quote author="Andre" date="1319795356"]Shouldn't the last be @ QTabBar::tab:hover @ ? [/quote] Right.
  • Running an application to a symbian device

    4
    0 Votes
    4 Posts
    2k Views
    L
    [quote author="annatz" date="1319793875"]i understood where the files are stored. thanks. I find a program "file browser" that opens the private folder of my app and from there i can copy my xml file.[/quote] You are welcome :) I am glad that the issue is solved.
  • Quickest way to search a directory for files with a specified extension

    7
    0 Votes
    7 Posts
    46k Views
    A
    I would make a recursive method that combines cincirin's method of listing the actual files with a recursive approach to get the subdirectories of the current directory, and do the same for each of those subdirectories. One thing about recursive methods like these: I foudn that it is convenient to wrap them in a non-recursive method. That method is then the API, the recursive one is an implementation detail that needs to be private. The reason is that often the method signature that you need for the recursive function is not optimal for the API of your class. It exposes too much internals of the recursive nature of the function. Though, I guess, you can do without in this case.
  • Facing problem in use of QtConcurrent.

    5
    0 Votes
    5 Posts
    3k Views
    F
    I guess you have to specify the instance on which the method has to be called.
  • Unwanted padding around QHBoxLayout

    3
    0 Votes
    3 Posts
    9k Views
    F
    Solved the second problem regarding the vertical scroll bar... called adjustSize() on the group and on the widget containing the group. @ void SettingsViewGroup::titleClicked() { _content->setVisible(_contentHidden); _contentHidden = !_contentHidden; adjustSize(); // <-------------- ADDED _parent->updateLayout(); // <-------------- ADDED } void SettingsView::updateLayout() // <-------------- ADDED { _content->adjustSize(); } @
  • 0 Votes
    25 Posts
    15k Views
    T
    thanks jetimms, ugur
  • QWebView and encoding

    9
    0 Votes
    9 Posts
    6k Views
    P
    And again i'm surprised how i could miss it. I guess i need to sleep less. Thanks. But as i have found QWebView::load() suits better since manually forming data lets me get it from my program's interface, not from webpage.
  • Problem with QSplitter - won't resize widgets? [Fixed]

    8
    0 Votes
    8 Posts
    9k Views
    L
    Aaaargh, just found out one of my team members added a QSizePolicy::Fixed in the wrong spot ><.
  • Running Flash plugin in Qt app

    8
    0 Votes
    8 Posts
    5k Views
    G
    Unfortunately I cannot grant Mad Scientist status, but that approach looks decently insane and deserves some extra points :-) From what I heard - recall that I didn't get my hands dirty with that - ActiveX controls should be embeddable in Qt. Did you have a look at the "ActiveX docs":/doc/qt-4.7/activeqt.html already?
  • QByteArray Remove not working?

    3
    0 Votes
    3 Posts
    3k Views
    G
    Additionally, check the values of your positions and difference whether they are sane.
  • Does Qt-dev have publicly published regression testing for builds?

    4
    0 Votes
    4 Posts
    2k Views
    F
    I would expect there to be an easy way to run all the tests (make test?), but I've never done so myself, so I actually don't know.
  • [Resolved] How to translate the enumeration of Qt

    5
    0 Votes
    5 Posts
    5k Views
    S
    Thanks for All. I have do it. How did I do? When I built the list of values for my enumeration, I put this value in tr (). And I tranlate that value in my file. <. ts> Exemple: @QMetaEnum metaEnum = QObject::staticQtMetaObject.enumerator(index); QStringList enumNames; for (int i = 0; i < metaEnum.keyCount(); i++) { enumNames << tr(metaEnum.key(i)); }@