Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 458.0k Posts
  • Multiple GrapchicsViews or one GraphicsView with widget proxies

    5
    0 Votes
    5 Posts
    5k Views
    ?
    also do refer to the chips demo src that ships with Qt, a very neat example
  • How do I access the Ui elements of a Dialog from within a Unit Test?

    5
    0 Votes
    5 Posts
    5k Views
    ?
    moved this thread to desktop forum
  • How to add a side toolbar with a vertical text in the toobar button

    6
    0 Votes
    6 Posts
    6k Views
    ?
    moved this to desktop forum
  • Send special unicode characters via TCP socket?

    6
    0 Votes
    6 Posts
    9k Views
    F
    [quote author="asish" date="1283414445"]I m facing same problem. plz metion how to solve it.I'v spent already 16 hrs but could not solve. Best Regards, asish[/quote] have you read the thread completly? there is already a solution
  • QMdiSubWindow run-time memory leak

    7
    0 Votes
    7 Posts
    4k Views
    C
    [quote author="Franzk" date="1283406222"]Just because the memory footprint of a program is growing, it doesn't mean there is a memory leak. As Denis stated, the WTM is a rather crude tool and can therefore only really be used for a crude overview. [/quote] I know WTM is not a good tool for that, but I thinks it can give me an idea of memory usage. Maybe this is not a memory leak, but it sound strange to me that a simple do-nothing application use so much memory and that it increases even if I do nothing. The same do-nothing application implemented as dialog (without the subwindow) has a stable memory usage. Increasing memory footprint dones't mean memory leak, of course, but if it isn't a memory leak, it is memory used somewhere by the application. In this case the application does nothing at all, so I suppose is Qt that is doing something with that memory. Is that a normal behaviour for a Qt application? My real-application, with about 64 QSpinBox into a subwindow, refreshed every 250ms, easly eats megabytes. At first I supposed there is a memory leak in my code, even it don't use the freestore, but then I extract the piece of the GUI I had posted. Of couse, maybe I have a problem with my code also.
  • Align icon on a tab (QTabWidget) & tab widths

    8
    0 Votes
    8 Posts
    10k Views
    ?
    I put up something quickly "here":http://developer.qt.nokia.com/wiki/CustomTabBar, with just one tab button, but something you can extend upon.. is this what you wanted?
  • Translating application menu on Mac

    3
    0 Votes
    3 Posts
    3k Views
    P
    Thanks Franzk. Since I couldn't find a way to access the application menu, manually translating or recreating the menu isn't possible.
  • COM Event Sink without ATL in Qt (C++)?

    2
    0 Votes
    2 Posts
    5k Views
    B
    I've managed to incorporate an Event Dispatcher defining an Event Sink Map using ATL to notify events in Qt now. After evaluating the possibilities not using ATL I did not find a feasible alternative. Too bad ATL is not part of the free Windows SDK or VC++ Express distros. I'd still be pleased to here if anyone managed with ActiveQt or without ATL. Greetings, bfabricius
  • QFont setFixedPitch

    4
    0 Votes
    4 Posts
    5k Views
    ?
    thanks :)
  • Problems with QT Webkit

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Moved] How to QGraphicsView receive keyPressEvent to active a QState

    3
    0 Votes
    3 Posts
    3k Views
    F
    This really isn't the correct forum for these questions: "The purpose of this forum":http://developer.qt.nokia.com/forums/viewthread/264/
  • 0 Votes
    7 Posts
    4k Views
    Q
    @ ImgWdg::ImgWdg(QWidget *parent): QWidget(parent) { setAttribute(Qt::WA_DeleteOnClose); // setAttribute(Qt::WA_StaticContents); setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); // setSizePolicy(QSizePolicy(QSizePolicy::Maximum,QSizePolicy::Maximum)); // setSizePolicy(QSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum)); pImg = NULL; createScrolls(); }-- @ @ ImgWdg * child = new ImgWdg(fileName); child->setFixedSize(600,600); // ImgWdg * child = new ImgWdg(fileName,mdiArea); QHBoxLayout *hLayout = new QHBoxLayout; hLayout->addWidget(child); QWidget * container = new QWidget; container->setLayout(hLayout); mdiArea->addSubWindow(container); mdiArea->cascadeSubWindows(); if(child->isData){ // child->show(); container->show(); @ fixed mini only , but stretch freely !
  • QScrollArea not showing scrollbars and messing widgets

    3
    0 Votes
    3 Posts
    11k Views
    ?
    try this instead: @ setStyleSheet("QAbstractScrollArea { margin: 16px; }"); @
  • Using QThread and QNetworkAccessManager

    7
    0 Votes
    7 Posts
    14k Views
    J
    Oh, also one more thing. I did add an exit() to my downloadFinished slot. Further, this has caused my main gui to remain responsive. There is no 1 1/2 second pause when the download is taking place.
  • QGroupBox borders

    6
    0 Votes
    6 Posts
    8k Views
    I
    Use QStyle. What graphics-theme on Ubuntu you have? May be that theme use its own QStyle with(out) borders.
  • Get correct QGraphicsItem

    2
    0 Votes
    2 Posts
    2k Views
    F
    You can solve this by making CustomItem a QGraphicsSvgItem: @ class CustomItem : public QGraphicsSvgItem { ... }; CustomItem::CustomItem(QGraphicsItem *parent) : QGraphicsSvgItem(fileName, parent) { }@
  • Software Architecture with (Q)state machine

    6
    0 Votes
    6 Posts
    5k Views
    S
    [offtopic]I found bug. While you dont select "MY EVENT" code, it show incorrect in Firefox, without "_" character.[/offtopic]
  • Which configure Flags do the precompiled Binaries have?

    7
    0 Votes
    7 Posts
    8k Views
    R
    I downloaded the binary distribution of Qt and my qconfig.pri file contains this: QT_CONFIG += release debug zlib png accessibility qt3support opengl s60 openssl ipv6 script scripttools xmlpatterns phonon phonon-backend multimedia audio-backend webkit native-gestures svg minimal-config small-config medium-config large-config full-config And, what I've read seems to indicate that the Qt binary distribution is not built with OpenSSL enabled. So, can these flags possibly be accurate?
  • 0 Votes
    6 Posts
    5k Views
    U
    Reported it as a bug: http://bugreports.qt.nokia.com/browse/QTSDK-176
  • Random crashes while playing videos through Phonon on Windows

    2
    0 Votes
    2 Posts
    2k Views
    H
    Apologies for replying to myself. After deinstalling the 3rd party codecs and testing for a while it crashed again, but only once, where before it would crash much more often. This seems to happen when I try to play an MPEG-4 H.264 file. BTW, I don't understand why the file doesn't play without any 3rd party codec on Windows 7. Windows Media Player plays it just fine. Shouldn't everything that works in WMP also work in Phonon::VideoPlayer? This is a huge problem for the app I'm writing. The customers expect to be able to play common video files, especially if they work in the default media player. WMV can not be used either, since that doesn't work with the Mac version (see "WMV Playback using Phonon::VideoWidget and Flip4Mac fails in 32-Bit builds":http://developer.qt.nokia.com/forums/viewthread/628). Any help would be greatly appreciated...