Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Linux application looks ugly when launched with sudo

    8
    0 Votes
    8 Posts
    6k Views
    U
    Thank you all, sudo qtconfig did the trick!
  • [Solved] how to detect when the selection changes in a QTreeView

    6
    0 Votes
    6 Posts
    29k Views
    Q
    Clearly I'm not using itemselectionchanged. I posted that comment to point out that I've already tried numerous signals on the QTreeView including the selectionChanged signal that you suggested. None of them worked. My goal was to find an alternative signal to itemSelectionChanged that was also similar in its behavior. I was finally able to detect selection changes on the tree view by using the selection model as suggested by Andre (tree->selectionModel()) and the QItemSelectionModel's selectionChanged() signal. It seems to work as expected. Thanks for the suggestions.
  • How can i watch internetstreams with phonon?

    22
    0 Votes
    22 Posts
    12k Views
    V
    Thanks for the advise Marco! You are a real help! Im sorry i can not be of any help for your problem. regards, vinb
  • Gstreamer and Qt

    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • [Split] QDialog questions

    2
    0 Votes
    2 Posts
    2k Views
    F
    [quote author="Thomas Kennedy" date="1303281754"] 1.would like to have a tool bar on dlg 2.woluld like to restrict the size of the Dlg 3.would like to have a spalsh screen before opening the app. [/quote] A tool bar is a QWidget. You can place it anywhere you want like any other widget. You won't have the tool bar areas that a QMainWindow has, though. QWidget has: @ void setFixedHeight ( int h ) void setFixedSize ( const QSize & s ) void setFixedSize ( int w, int h ) void setFixedWidth ( int w ) void setMaximumHeight ( int maxh ) void setMaximumSize ( const QSize & ) void setMaximumSize ( int maxw, int maxh ) void setMaximumWidth ( int maxw ) void setMinimumHeight ( int minh ) void setMinimumSize ( const QSize & ) void setMinimumSize ( int minw, int minh ) void setMinimumWidth ( int minw )@ QSplashScreen
  • Using phonon to stream from youtube problem

    2
    0 Votes
    2 Posts
    3k Views
    V
    Hi Marco, I have no solution for your problem, but i have a similair problem wich is discussed in "this":http://developer.qt.nokia.com/forums/viewthread/5203 topic. Can you also have a look there and help me out a little? Kind regards, vinb.
  • QFileDialog missing entries

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QClipboard/QMimeData problem with transparent images

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Custom sub-controls for custom widgets in style sheets

    13
    0 Votes
    13 Posts
    10k Views
    V
    @Andre, thanks for those words. :) But i know for sure, that your knowledge of Qt is much greater then mine.
  • QNetworkProxy

    8
    0 Votes
    8 Posts
    4k Views
    D
    If the connect fails, what is the output of the sockets error() [doc.qt.nokia.com] method? QAbstractSocket::ProxyConnectionClosedError "Proxy connection closed prematurely"
  • Set background color to a cell of a tableView

    54
    0 Votes
    54 Posts
    39k Views
    P
    So any ideas on how to get the proper row highlighted AFTER the table is sorted? I have not had any luck with my attempts.
  • Problem with Q_GADGET

    5
    0 Votes
    5 Posts
    6k Views
    G
    Q_OBJECT works only for QObject derived classes. This makes QObject the toplevel class in the inheritance hierarchy. As Q_GADGET enables a subset of the meta object system on classes not based on QObject and moc is run anayways, I suspect this holds for those classes too: moc just expects that the base classes are gadgets too. Adding the Q_GADGET macro to class A should have no impact on your existing software, as it just adds some extra stuff and does not change your existing code. The only drawback might be a binary incompatibility, due to the fact that the class interface changes.
  • Fixed aspect ratio for a widget

    6
    0 Votes
    6 Posts
    13k Views
    F
    Easy enough, just try to compile that @ #include <QWidget> #include <QApplication> #include <QSizePolicy> class MyWidget:public QWidget { public: MyWidget():QWidget(){}; ~MyWidget(){}; virtual int heightForWidth ( int w ) const { return w*9/16;}; }; int main (int argv, char** argc) { QApplication a(argv,argc); MyWidget w; QSizePolicy qsp(QSizePolicy::Preferred,QSizePolicy::Preferred); qsp.setHeightForWidth(true); w.setSizePolicy(qsp); w.show(); a.exec(&#41;; } @ and resize the windows : it doesn't care about aspect ratio at all...
  • Set fixed size of QMainWindow created in Designer

    11
    0 Votes
    11 Posts
    91k Views
    Z
    They are both valid solutions. In fact they amount to the same thing since that is all that the setFixedSize() function does anyway.
  • Osx + mysql with xampp + qt

    16
    0 Votes
    16 Posts
    8k Views
    M
    you can download the source from xamp file ;)
  • Problems Contributing and Sync'ing with git

    2
    0 Votes
    2 Posts
    2k Views
    Z
    It looks to be because your local clone was made from your own personal clone on gitorious not from the actual Qt repo. If you have not updated your personal clone on gitorious since you last pulled then of course there will be nothing to fetch. What you have done by editing that file in this way is to tell git that you really did clone it from the official Qt repo on gitorious. I usually just get my local repo by cloning the official Qt repo on gitorious and then explicitly tell git to push to my personal clone (or a team clone) on gitorious when I wish to publish my changes. The reason for this is that I do not see that gitorious provides any interface for directly pullling changes from the official Qt repo to a personal/team clone on gitorious. So my data flow is: @ Official Qt repo --> Local Qt clone ---> make local changes in branch --> Push to personal clone on gitorious --> Prepare Merge Request @ What you appear to be trying to do is: @ Official Qt repo --> Personal clone on gitorious --> local clone --> make changes in branch --> Push to personal clone on gitorious --> Prepare Merge Request @ The problem is that the "pull" represented by the first arrow only happens once when you make the initial clone.
  • QDebug() prevents from crash?

    9
    0 Votes
    9 Posts
    6k Views
    J
    [quote author="Smar" date="1303137713"]In theory, qDebug() takes some buffer and does something for it that would otherwise make the faulty line address memory that is not usually available.[/quote] This explanation is sufficient for me, thank you :) [quote author="Smar" date="1303137713"] Valgrind would tell exact reason for that, just use it, since you’re only one who actually has your code. [/quote] I´m using Windows and am to lazy to find an equivalent shy
  • Slow in Mobile device

    Locked
    11
    0 Votes
    11 Posts
    4k Views
    A
    Sorry, I don't keep moving around your posts to the right place. Closed.
  • Dumb question: how to create linux app in Windows' QT

    2
    0 Votes
    2 Posts
    3k Views
    F
    You can have a look at "This article on stack overflow":http://stackoverflow.com/questions/5675884/easy-way-to-cross-compile-a-qt-application-using-qt-creator/5676089#5676089 Basically, I don't know if mingwin gcc allows you to cross-compile (never heard of that and I use visual here, I can't really mess with my environment to try), but the easiest is definitely to have a linux VM running, synchronized with your SCM: this way, you know what / when you build fairly easily
  • Proxy and QTcpSockets

    6
    0 Votes
    6 Posts
    6k Views
    D
    ok. The problem was solved. I just used QNetworkProxy, and a bit code for support at mine proxy.